<!DOCTYPE html>
<html>
  <head>
    <title><%= title %></title>
    <link rel='stylesheet' href='/stylesheets/style.css' />
      <link rel='stylesheet' href='/bootstrap-3.3.5-dist/css/bootstrap.css'/>
      <script src="/javascripts/jquery-1.11.1.min.js"></script>
      <script src="/bootstrap-3.3.5-dist/js/bootstrap.js"></script>
      <script src="/javascripts/vue.js"></script>


  </head>
  <body>
    <h1>登录成功</h1>
    <p>Welcome to <%= title %></p>
    <p id="data"><%= user %></p>
    <ul id="app">
        <li v-for="todo in todos">
            {{ todo.name }}
        </li>
    </ul>
  </body>
  <script>
      $(function(){
          new Vue({
              el: '#app',
              data: {
                  todos: eval("("+$("#data" ).text()+")")
               }
          })
      })
  </script>
</html>
